Skip to content

spike: hummingbird based operator image - #1115

Draft
razvan wants to merge 3 commits into
mainfrom
feat/humm-spike
Draft

razvan wants to merge 3 commits into
mainfrom
feat/humm-spike

Conversation

@razvan

@razvan razvan commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Operator image on Red Hat Hummingbird (spike)

Part of stackabletech/issues#921

Adds hummingbird-spike/Dockerfile, an alternative to docker/Dockerfile that builds the operator on Red Hat Hummingbird with no UBI stage.
It follows the approach of the ZooKeeper product image spike (stackabletech/docker-images#1757).
docker/Dockerfile is generated from operator-templating, so it is not touched.

How it works

These are the stages in the Dockerfile:

  • builder: registry.access.redhat.com/hi/rust:latest-builder. It ships cargo and rustc, and it has dnf (the plain hi/rust image does not). gcc is needed as the linker and for the ring and libgit2 build scripts. The image already ships it (gcc-16.2.1), so the Dockerfile does not install it. The operator is built with cargo auditable build --locked --release.
  • additions: collects README, LICENSE and the operator binary into /additions, with ownership for UID 782252253 and group 0 (g=u). It prints the ldd output of the binary.
  • final image: FROM registry.access.redhat.com/hi/core-runtime (RUNTIME_BASE), only adds /additions and the same labels, ENTRYPOINT and CMD ["run"] as docker/Dockerfile.
    No user is created. The image runs as the numeric UID without a passwd entry, which works in Kubernetes and OpenShift and avoids editing /etc/passwd, which belongs to an RPM of the base image.
  • New Makefile target docker-build-humm.
make docker-build-humm ARCH=amd64

The image is tagged <registry>/<project>/zookeeper-operator:<version>-<ARCH>-humm.

OpenShift

✅ Preflight

$ preflight check container oci.stackable.tech/sandbox/zookeeper-operator:0.0.0-dev-amd64-humm
...
time="2026-11-26T15:46:02+01:00" level=info msg="Preflight result: PASSED"

✅ Operator Certification Pipeline

The certification pipeline was run from the branch stackable-zookeeper-0.0.0-dev-humm

Differences from the UBI image

The runtime is whatever hi/core-runtime ships, plus the operator. Not in the image:

  • nano, iputils (not in the Hummingbird repo, as in the ZooKeeper spike).
  • libkadm5 and krb5-libs. In the source, Kerberos only appears as an AuthenticationClassProvider variant of the CRD. Whether the binary links Kerberos libraries is checked with the ldd output of the build (see below).
  • bash and its profile, coreutils, findutils, less, tar, shadow-utils and ca-certificates (unless core-runtime has them). No shell means no kubectl cp (it needs tar) and no debugging inside the container.
  • A stackable user and group.

The Rust toolchain comes from the image's rust package, not from rust-toolchain.toml.
The build prints both versions, but does not fail on a mismatch. Currently the image has rustc 1.100.0 and the repo pins 1.99.0.

Security audit

Hummingbird based image:
image

UBI9 based image:
image

Status

  • The image builds with make docker-build-humm.
  • The Rust version in the image matches rust-toolchain.toml (1.99.0). It does not: hi/rust:latest-builder has 1.100.0.
  • The operator starts and reconciles a ZookeeperCluster in a cluster (tested with the FROM scratch version, retest with core-runtime).
  • The shared libraries listed by ldd in the additions stage are all provided by core-runtime (this covers Kerberos).
  • TLS to the Kubernetes API works without ca-certificates from the image.
  • The built crate records the commit hash (it needs a .git directory in the build context, which a git worktree does not have).
  • Pin the base images by digest.
  • Only amd64 was built. arm64 is untested.
  • Security scan compared with the UBI image (redo on core-runtime).
  • preflight check container passes (amd64, 11 of 11 checks).
  • Run image through the OpenShift operator certification pipeline. The bundle checks passed with the FROM scratch image. The core-runtime image has not been through the pipeline (DeployableByOLM).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant